//
//  AllViewController.m
//  HYHOME
//
//  Created by Mac on 16/1/30.
//  Copyright © 2016年 Mac. All rights reserved.
//

#import "AllViewController.h"
#import "DKNightVersion.h"
#import "AllTableViewCell.h"
#import "AFNetworking.h"
#import "NetWorkHandler.h"


#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonHMAC.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import <netdb.h>
#import <arpa/inet.h>

@interface AllViewController ()
@property (nonatomic,retain)UITableView *tableView;
@property (nonatomic,retain)UITabBarController *tb;
@property (nonatomic,retain)UICollectionView *collectionV;
@property (nonatomic,retain)UICollectionViewFlowLayout *flow;

@property (nonatomic,assign)BOOL net;
@end

@implementation AllViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
 
    self.tableView.dk_backgroundColorPicker =  DKColorWithRGB(0xffffff, 0x343434);
    self.tableView.dk_separatorColorPicker = DKColorWithRGB(0xaaaaaa, 0x313131);
    self.collectionV.dk_backgroundColorPicker =  DKColorWithRGB(0xffffff, 0x343434);
   // self.collectionV.dk_separatorColorPicker = DKColorWithRGB(0xaaaaaa, 0x313131);


    self.tb.tabBar.dk_barTintColorPicker = DKColorWithRGB(0xffffff, 0x343434);
    self.tb.tabBar.dk_barTintColorPicker = DKColorWithRGB(0xaaaaaa, 0x313131);

    self.navigationController.navigationBar.dk_barTintColorPicker = DKColorWithRGB(0x4AFFCA, 0x444444);
//        self.navigationController.navigationBar.dk_barTintColorPicker = DKColorWithRGB(0xffffff, 0x444444);
    self.navigationItem.leftBarButtonItem.dk_tintColorPicker = DKColorWithColors([UIColor lightGrayColor], [UIColor whiteColor]);
    self.navigationItem.rightBarButtonItem.dk_tintColorPicker = DKColorWithColors([UIColor lightGrayColor], [UIColor whiteColor]);
    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor colorWithRed:1 green:1 blue:1 alpha:1],NSForegroundColorAttributeName, nil]];
}
  
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
